Apparatus and method of searching and visualizing instance path

ABSTRACT

An apparatus and method of searching and visualizing an instance path. The method includes receiving two or more keywords and path search condition; generating a pair of instances with respect to the keywords, extracting a pair of classes corresponding to each of the pairs of instances from ontology instance database; obtaining an ontology schema path with respect to each of the pairs of classes from ontology schema path database; replacing start and end classes with corresponding first and second instances in each of the ontology schema paths and searching for instance path corresponding to the path search condition from the instance paths connected between the first instance and the second instance; outputting instance path display screen on which the searched instance paths are displayed; and if the path search condition changes through the instance path display screen, obtaining and visualizing instance paths corresponding to the changed path search condition.

CROSS-REFERENCE TO RELATED PATENT APPLICATION

This application claims the benefit of Korean Patent Application No. 10-2011-0054016, filed on Jun. 3, 2012, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an apparatus and method of searching and visualizing an instance path and, more particularly, to an apparatus and method of searching and visualizing an instance path, in which when two or more keywords and a path search condition are received, an instance path search and visualization apparatus generates a pair of instances with respect to the keywords, respectively, extracts a pair of classes corresponding to each of the pairs of instances, respectively, obtains an ontology schema path with respect to each of the pairs of classes, respectively, searches for an instance path corresponding to the path search condition using each of the ontology schema paths, respectively, outputs an instance path display screen on which the searched instance paths are displayed, and if the path search condition is changed, obtains and visualizes instance paths corresponding to the changed path search condition.

2. Description of the Related Art

In general, people are able to intuitively determine the semantic relationship between words used. For example, it can be seen that while there is a close relationship between “football boots” and “football”, there is no special relationship between “football boots” and “vehicle”. Therefore, when people read a document, they may know this document is associated with which word and may recall a related word from the document even when the associated word is not included in the document.

Since a Semantic Web, a next generation web technology, in which a computer can understand the meaning of data on the web and perform logical reasoning, has attracted much attention, the amount of Web data represented in RDF/RDFS increases.

However, it is very difficult for even experts to directly search for a relationship between instances from a massive triple store. Moreover, in order to search for the relationship between instances in a systematic manner, the search is performed based on the direction of the relationship, and thus it is impossible to search for diverse and complex relationships, which is very problematic.

SUMMARY OF THE INVENTION

The present invention has been made in an effort to solve the above-described problems associated with prior art, and an object of the present invention is to provide an apparatus and method of searching and visualizing an instance path, which can search for a path between class-based instances and effectively display a path between two or more instances in order to rapidly search for diverse and complex relationships.

Another object of the present invention is to provide an apparatus and method of searching and visualizing an instance path, which can search for a relationship between instances based on a relationship between classes in order to avoid comparison between the relationship being searched and the relationship of unnecessary objects when comparing the relationship between instances.

Still another object of the present invention is to provide an apparatus and method of searching and visualizing an instance path, which can search and visualize an instance path by searching for all relationships without considering the direction of classes or instances.

According to an aspect of the present invention to achieve the above object of the present invention, there is provided a method of searching and visualizing an instance path, the method being performed by an instance path search and visualization apparatus, the method comprising: (a) receiving two or more keywords and a path search condition; (b) generating a pair of instances with respect to the keywords, respectively, and extracting a pair of classes corresponding to each of the pairs of instances from an ontology instance database, respectively; (c) obtaining an ontology schema path with respect to each of the pairs of classes from an ontology schema path database, respectively; (d) replacing start and end classes with corresponding first and second instances in each of the ontology schema paths and searching for an instance path corresponding to the path search condition from the instance paths connected between the first instance and the second instance, respectively; (e) outputting an instance path display screen on which the searched instance paths are displayed; and (f) if the path search condition is changed through the instance path display screen, obtaining and visualizing instance paths corresponding to the changed path search condition.

The method may further comprise, before step (a), searching for an ontology schema path between classes with respect to all classes stored in the ontology schema database, respectively, and storing the searched ontology schema paths in the ontology schema path database.

The method may further comprise, if an update of the ontology schema database is detected, searching for an ontology schema path of the updated class and updating the ontology schema path database.

The path search condition may comprise at least one of an instance path length, a number of outputs, and a response time.

The method may further comprise, if a particular instance path list is selected by a user from the instance paths displayed on the instance path display screen, highlighting an instance path graph corresponding to the selected instance path list more than an instance path graph corresponding to an unselected instance path list.

Step (b) may comprise: obtaining instances of the input keywords from the ontology instance database; generating a pair of instances with respect to the obtained instances, respectively; and extracting a pair of classes corresponding to each of the pairs of instances from the ontology schema database, respectively.

Step (c) may comprise searching the ontology schema path database and obtaining an ontology schema path, in which the start class and the end class corresponding to each pair of classes are connected to the start or end, for each pair of classes, respectively.

If the instance path length is set in the path search condition, an ontology schema path corresponding to the instance path length may be obtained with respect to each pair of classes, respectively.

Step (d) may comprise: (d-1) replacing the start and end classes with corresponding first and second instances in the ontology schema path; (d-2) dividing the ontology schema path into halves and generating a first join schedule including the first instance and a second join schedule including the second instance; (d-3) extracting related instances based on the first and second join schedules and searching for first and second instance paths; (d-4) connecting the searched first and second instance paths depending on their relationship and generating instance paths; and (d-5) searching for an instance path corresponding to the path search condition from the generated instance paths, respectively.

Step (d-1) may comprise: if the instance path length is set in the path search condition, obtaining an ontology schema path corresponding to the instance path length from the ontology schema paths, respectively; and replacing the start and end classes with corresponding first and second instances in the selected ontology schema path.

Step (d-3) may comprise: if the first or second instance is connected to at least one class in the first or second join schedule, extracting at least one instance related to the first or second instance from instances of a first or second class directly connected to the first or second instance; if there is another class connected to the first or second class in the first or second join schedule, extracting at least one instance related to the extracted instances from instances of the connected class; and connecting the first or second instance to the extracted instances depending on their relationship and generating at least one first or second instance path.

The method may further comprise, if there is not another class connected to the first or second class in the first or second join schedule, connecting the first or second instance to the instances extracted from the first or second class depending on their relationship and generating at least one first or second instance path.

The method may further comprise, if there is not another class connected to the first or second class in the first or second join schedule, generating an instance path connected only to the first instance and the second instance.

Step (d-5) may comprise, if the number of outputs and the response time are set in the path search condition, stopping the instance path search after the corresponding response time has elapsed while providing instance paths ranked at the top based on the corresponding number of outputs from the generated instance paths.

Step (d-5) may comprise, if the corresponding response time set in the path search condition has elapsed, providing the instance paths generated until then at a time.

The instance path display screen may comprise a keyword input area, a path search condition input area through which at least one of the instance path length, the number of outputs, and the response time is input, and an instance path display area on which the searched instance paths are displayed in the form of a graph or a list.

Step (f) may comprise: receiving at least one of the instance path length, the number of output, and the response time through the path search condition input area of the instance path display screen; obtaining an instance path corresponding the input path search condition from the searched instance paths, respectively; and visualizing the obtained instance paths on the instance path display area.

According to another aspect of the present invention to achieve the above object of the present invention, there is provided an apparatus of searching and visualizing an instance path, the apparatus comprising: an ontology schema database in which relationship information between classes is stored; an ontology instance database in which relationship information between instances is stored; an ontology schema path database in which ontology schema paths between classes with respect to all classes stored in the ontology schema database are stored; a user interface unit which receives two or more keywords and a path search condition from a user; an instance pair generation unit which obtains instances of the input keywords from the ontology instance database and generating pairs of instances; a class pair extraction unit which extracts a pair of classes corresponding to each of the generated pairs of instances from the ontology instance database, respectively; an ontology schema path acquisition unit which obtains an ontology schema path with respect to each of the pairs of classes from the ontology schema path database, respectively; an instance path search unit which replaces start and end classes with corresponding first and second instances in the ontology schema path, searches for an instance path corresponding to the path search condition from the instance paths connected between the first instance and the second instance, respectively, and if the path search condition is changed through the instance path display screen, obtains instance paths corresponding to the changed path search condition; and a visualization unit which outputs an instance path display screen on which the searched instance paths are displayed.

The apparatus may further comprise an ontology schema path generation unit which searches for ontology schema paths between classes with respect to all classes stored in the ontology schema database and builds the ontology schema path database.

If an update of the ontology schema database is detected, the ontology schema path generation unit may search for an ontology schema path of the updated class and update the ontology schema path database.

The path search condition may comprise at least one of an instance path length, a number of outputs, and a response time.

If a particular instance path list is selected by the user from the instance paths displayed on the instance path display screen, the visualization unit may highlight an instance path graph corresponding to the selected instance path list more than an instance path graph corresponding to an unselected instance path list.

The ontology schema path acquisition unit may search the ontology schema path database and obtain an ontology schema path, in which the start class and the end class corresponding to each pair of classes are connected to the start or end, for each pair of classes, respectively.

If the instance path length is set in the path search condition, the ontology schema path acquisition unit may obtain an ontology schema path corresponding to the instance path length with respect to each pair of classes, respectively.

The instance path search unit may replace the start and end classes with corresponding first and second instances in the ontology schema path, divide the ontology schema path into halves, generate a first join schedule including the first instance and a second join schedule including the second instance, extract related instances based on the first and second join schedules, search for first and second instance paths, connect the searched first and second instance paths based on their relationship generates, generate the instance paths, and search for instance paths corresponding to the changed path search condition from the generated instance paths.

If the first or second instance is connected to at least one class in the first or second join schedule, the instance path search unit may extract at least one instance related to the first or second instance from instances of a first or second class directly connected to the first or second instance, and if there is another class connected to the first or second class in the first or second join schedule, the instance path search unit may extract at least one instance related to the extracted instances from instances of the connected class, connect the first or second instance to the extracted instances depending on their relationship, and generate at least one first or second instance path.

If there is not another class connected to the first or second class in the first or second join schedule, the instance path search unit may connect the first or second instance to the instances extracted from the first or second class depending on their relationship and generate at least one first or second instance path.

If there is not another class connected to the first or second class in the first or second join schedule, the instance path search unit may generate an instance path connected only to the first instance and the second instance.

If the number of outputs and the response time are set in the path search condition, the instance path search unit may stop the instance path search after the corresponding response time has elapsed while providing instance paths ranked at the top based on the corresponding number of outputs from the generated instance paths.

If the corresponding response time set in the path search condition has elapsed, the instance path search unit may provide the instance paths generated until then at a time.

The instance path display screen may comprise a keyword input area, a path search condition input area through which at least one of the instance path length, the number of outputs, and the response time is input, and an instance path display area on which the searched instance paths are displayed in the form of a graph or a list.

If at least one of the instance path length, the number of outputs, and the response time is input through the path search condition input area of the instance path display screen, the instance path search unit may obtain an instance path corresponding to the input path search condition from the searched instance path, respectively, and provide the obtained instance paths to the visualization unit to visualize them on the instance path display area.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:

FIG. 1 is a diagram showing an instance path search and visualization system in accordance with the present invention;

FIG. 2 is a schematic block diagram showing the configuration of an instance path search and visualization apparatus in accordance with the present invention;

FIGS. 3A and 3B are illustrative diagrams showing the structure of an ontology instance database shown in FIG. 2;

FIGS. 4A and 4B are illustrative diagrams showing the structure of an ontology schema database shown in FIG. 2;

FIG. 5 is an illustrative diagram showing the structure of an ontology schema path database shown in FIG. 2;

FIG. 6 is a flowchart showing how the instance path search and visualization apparatus in accordance with the present invention searches for an instance path;

FIG. 7 is a flowchart showing how the instance path search and visualization apparatus in accordance with the present invention builds an ontology schema path database;

FIG. 8 is a diagram showing how the instance path search and visualization apparatus in accordance with the present invention builds an ontology schema path database;

FIG. 9 is a flowchart showing how the instance path search and visualization apparatus in accordance with the present invention searches for an instance path using an ontology schema path;

FIG. 10 is a flowchart showing how the instance path search and visualization apparatus in accordance with the present invention searches for an instance path based on a join schedule; and

FIGS. 11 and 12 are illustrative diagrams showing instance path display screens in accordance with the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Details of the forgoing objects, technical construction and corresponding operational effect of the present invention are more clearly understood by the following detailed descriptions based on the drawings attached to the specification of the present invention.

The term “keyword” as described herein refers to a user keyword having one or more uniform resource identifiers (URIs), and the term “instance” refers to a URI for the keyword.

The term “class” refers to a group including related instances.

The term “ontology schema path” refers to a path in which classes are connected via one or more relationships, and the term “instance path” refers to a path in which instances are connected via one or more relationships.

FIG. 1 is a diagram showing an instance path search and visualization system in accordance with the present invention.

Referring to FIG. 1, an instance path search and visualization system comprises a user terminal 100 which receives a keyword and a path search condition and an instance path search and visualization apparatus 200 which searches and visualizes instance paths corresponding to the keyword and the path search condition received from the user terminal 100.

The user terminal 100 refers to a wired communication terminal such as a PC or a mobile communication terminal such as a cellular phone, a notebook, etc.

The instance path search and visualization apparatus 200 receives two or more keywords and a path search condition from the user terminal 100, generates a pair of instances with respect to the keywords, respectively, and extracts a pair of classes corresponding to each of the pairs of instances from an already built ontology instance database, respectively.

Then, the instance path search and visualization apparatus 200 obtains an ontology schema path with respect to each of the pairs of classes from an ontology schema path database, respectively, and searches and outputs an instance path corresponding to the path search condition using each of the ontology schema paths, respectively.

Moreover, if the path search condition is changed, the instance path search and visualization apparatus 200 obtains and outputs instance paths corresponding to the changed path search condition.

The instance path search and visualization apparatus 200 that performs the above-described functions will be described in detail with reference to FIG. 2 below.

FIG. 2 is a schematic block diagram showing the configuration of an instance path search and visualization apparatus in accordance with the present invention, FIGS. 3A and 3B are illustrative diagram showing the structure of an ontology instance database shown in FIG. 2, and FIGS. 4A and 4B are illustrative diagrams showing the structure of an ontology schema database shown in FIG. 2.

Referring to FIG. 2, the instance path search and visualization apparatus 200 comprises an ontology instance database 202 in which relationship information between instances is stored, an ontology schema database 204 relationship information between classes is stored, an ontology schema path database 206, a user interface unit 208, an instance pair generation unit 210, a class pair extraction unit 212, an ontology schema path acquisition unit 214, an instance path search unit 216, a visualization unit 218, and an ontology schema path generation unit 220.

In the ontology instance database 202, the relationship between instances is registered as shown in FIGS. 3A and 3B.

The ontology instance database 202 will be described in more detail with reference to FIGS. 3A and 3B below. In the ontology instance database 202, a subject, an object, and a predicate with respect to an instance are defined as shown in FIG. 3A.

For example, if “school 1” is the subject and “professor 1” is the object, the “school 1” and the “professor 1” are defined as the relationship between the predicates of “school-professor”.

Thus, the relationship between two instances is established by the predicates.

When visualizing the table of FIG. 3A as a graph, the relationship between the instances is represented as a graph as shown in FIG. 3B.

In the ontology schema database 204, the relationship between classes is registered as shown in FIGS. 4A and 4B.

The ontology schema database 204 will be described in more detail with reference to FIGS. 4A and 4B below. In the ontology schema database 204, a subject, an object, and a predicate with respect to a class are defined as shown in FIG. 4A. That is, the relationship between two classes is established by the predicates.

When visualizing the table of FIG. 4A as a graph, the relationship between the classes is represented as a graph as shown in FIG. 4B.

In the ontology schema path database 206, ontology schema paths between classes with respect to all classes stored in the ontology schema database 204 are stored.

The ontology schema path database 206 will be described in more detail with reference to FIG. 5 below. In the ontology schema path database 206, a path, a path length, etc. with respect to a start class and an end class are registered.

The user interface unit 208 receives two or more keywords and a path search condition from a user. The path search condition refers to an instance path length, a number of outputs, a response time, etc. Here, the instance path length refers to the number of relationships (i.e., edges) between two instances, the number of outputs refers to the number of results to be obtained through the instance path search, and the response time refers to the time allowed for the instance path search by the user. The user interface unit 208 receives the keywords from a user terminal via a communication network or via an input unit provided in the user terminal.

The instance pair generation unit 210 obtains instances of the input keywords from the ontology instance database 202 and generates pairs of instances. That is, the instance pair generation unit 210 obtains instances of the input keywords and generates a pair of instances with respect to the obtained instances, respectively.

For example, if the obtained instances are A, B, and C, the instance pair generation unit 210 generates three pairs of instances such as A-B, A-C, and B-C.

The class pair extraction unit 212 extracts a pair of classes corresponding to each of the generated pairs of instances from the ontology instance database 202, respectively.

For example, if “school 2-professor 3” are the instances, the class pair extraction unit 212 searches the ontology instance database 202 and extracts “school” corresponding to the “school 2” and “professor” corresponding to the “professor 2”, thus extracting a pair of classes of “school-professor”.

In more detail, the class pair extraction unit 212 searches the ontology instance database 202, extracts values of an object in which the values of a subject are instances and the value of a predicate are rdf:type, and extracts the extracted values of the object as a class.

The ontology schema path acquisition unit 214 obtains an ontology schema path with respect to each of the pairs of classes from the ontology schema path database 206, respectively.

That is, since the ontology schema path with respect to each of the pairs of classes is stored in the ontology schema path database 206, the ontology schema path acquisition unit 214 can obtain the ontology schema path with respect to the corresponding pair of classes by searching the ontology schema path database 206.

In other words, the ontology schema path acquisition unit 214 searches the ontology schema path database 206 and obtains an ontology schema path, in which the start class and the end class corresponding to each pair of classes are connected to the start or end, for each pair of classes, respectively. Here, if the instance path length is set in the path search condition, the ontology schema path acquisition unit 214 obtains an ontology schema path corresponding to the instance path length for each pair of classes, respectively. For example, if the instance path length is set as 3-5 in the path search condition, the ontology schema path acquisition unit 214 obtains an ontology schema path having a length of 3 to 5, respectively. That is, the ontology schema path acquisition unit 214 obtains an ontology schema path having a length of 3 such as “A-C-D-B”, an ontology schema path having a length of 4 such as “A-C-D-E-B”, and an ontology schema path having a length of 5 such as “A-C-D-E-F-B”.

The instance path search unit 216 searches for an instance path corresponding to the path search condition using each of the obtained ontology schema paths, respectively, and if the path search condition is changed through the user interface unit 208, obtains instance paths corresponding to the changed path search condition. Here, the path search condition comprises at least one of the instance path length, the number of outputs, and the response time.

That is, the instance path search unit 216 replaces the start and end classes with corresponding first and second instances in the ontology schema path, divides the ontology schema path into halves, and generates a first join schedule including the first instance and a second join schedule including the second instance. Here, the ontology schema path is an ontology schema path corresponding to the instance path length set in the path search condition. Then, the instance path search unit 216 searches for first and second instance paths by extracting related instances based on the first and second join schedules, generates instance paths by connecting the searched first and second instance paths depending on their relationship, and searches for an instance path corresponding to the path search condition from the generated instance paths, respectively.

Here, if the number of outputs and the response time are set in the path search condition, the instance path search unit 216 stops the instance path search after the corresponding response time has elapsed while providing instance paths ranked at the top based on the corresponding number of outputs from the generated instance paths.

Moreover, if the corresponding response time set in the path search condition has elapsed, the instance path search unit 216 provides the instance paths generated until then at a time.

The ontology schema path generation unit 220 searches for ontology schema paths between classes with respect to all classes stored in the ontology schema database 204 and builds the ontology schema path database 206.

Moreover, if an update of the ontology schema database 204 is detected, the ontology schema path generation unit 220 searches for an ontology schema path of the updated class and updates the ontology schema path database 206.

The visualization unit 218 outputs an instance path display screen on which the searched instance paths are displayed. The instance path display screen includes a keyword input area, a path search condition input area through which at least one of the instance path length, the number of outputs, and the response time is input, and an instance path display area on which the searched instance paths are displayed in the form of a graph or a list.

Moreover, if a particular instance path list is selected by the user from the instance paths displayed on the instance path display screen, the visualization unit 218 highlights an instance path graph corresponding to the selected instance path list more than an instance path graph corresponding to an unselected instance path list.

FIG. 6 is a flowchart showing how the instance path search and visualization apparatus in accordance with the present invention searches and visualizes an instance path.

Referring to FIG. 6, the instance path search and visualization apparatus searches for the ontology schema paths between classes with respect to all classes stored in the ontology schema database and builds the ontology schema path database (S602).

The process of building the ontology schema path database, which is performed by the instance path search and visualization apparatus, will be described in more detail with reference to FIG. 7 later.

After performing the step S602, if two or more keywords and a path search condition are input from a user (S604), the instance path search and visualization apparatus generates a pair of instances with respect to the keywords, respectively (S606). That is, the instance path search and visualization apparatus obtains instances of the input keywords from the ontology instance database and generates a pair of instances with respect to the obtained instances, respectively.

After performing the step S606, the instance path search and visualization apparatus extracts a pair of classes corresponding to each of the pairs of instances from the ontology instance database, respectively (S608).

After performing the step S608, the instance path search and visualization apparatus obtains an ontology schema path with respect to each of the pairs of classes from the ontology schema path database, respectively (S610). That is, the instance path search and visualization apparatus searches the ontology schema path database and obtains an ontology schema path, in which the start class and the end class corresponding to each pair of classes are connected to the start or end, for each pair of classes, respectively. Here, if the instance path length is set in the path search condition, the ontology schema path acquisition unit obtains an ontology schema path corresponding to the instance path length for each pair of classes, respectively.

Then, the instance path search and visualization apparatus searches for an instance path corresponding to the path search condition using each of the ontology schema paths, respectively (S612).

The process of searching for the instance paths using the ontology schema paths, which is performed by the instance path search and visualization apparatus, will be described in more detail with reference to FIG. 9 later.

After performing the step S612, the instance path search and visualization apparatus outputs an instance path display screen on which the searched instance paths are displayed (S614). The instance path display screen will be described in more detail with reference to FIG. 11 later.

After performing the step S614, if the path search condition is changed through the instance path display screen (S616), the instance path search and visualization apparatus obtains and visualizes instance paths corresponding to the changed path search condition (S618).

FIG. 7 is a flowchart showing how the instance path search and visualization apparatus in accordance with the present invention builds an ontology schema path database.

Referring to FIG. 7, to select any reference class for path generation, the instance path search and visualization apparatus generates a first stack (N=1) (S702), obtains a certain class from the ontology schema database, and stores the obtained class in the current stack (S704). That is, the instance path search and visualization apparatus obtains a subject of a tuple, in which the predicate is rdf:type and the object is rdfs:class, from the ontology schema database and stores (i.e., pushes) the obtained subject in the first stack. Here, the obtained subject is the class, and the N is the number of the stack.

After performing the step S704, if a certain class is selected (i.e., popped) from the current stack (S706), the instance path search and visualization apparatus searches the ontology schema database and determines whether there is a class related to the selected class (S708).

If it is determined in the step S708 that there is the class related to the selected class, the instance path search and visualization apparatus increases the number of stack by one (S710), obtains all classes related to the selected class from the ontology schema database, and stores (i.e., pushes) the obtained classes in the stack whose number is increased by one (S712). That is, in order to select a certain class stored in the current stack and to obtain all classes related to the selected class, the instance path search and visualization apparatus obtains a subject of all tuples having the selected class as the object, in which the predicate is rdfs:domain or rdfs:range, from the ontology schema database, obtains an object of all tuples having the selected subject as the subject, in which the predicate is rdfs:domain or rdfs:range, and stores them in the next stack. For example, if the class of “school” of FIG. 4B is selected from the first stack, the class of “professor”, “lecture”, “department”, and “team” is stored in the next second stack.

After performing the step S712, the instance path search and visualization apparatus selects (i.e., pops) a certain class from the classes stored in the current stack (S714) and generates all paths from the class selected from the first stack to the class selected from the current class (S716). For example, as shown in FIG. 4B, if the class of “professor” is selected after “school” is stored in the first stack and the second stack including “professor”, “lecture”, “department”, and “team” is generated with respect to the class of “school”, the instance path search and visualization apparatus generates a path of “school-professor”.

If the class of “lecture” is selected after a third stack including “research achievement”, “lecture”, and “school” is generated with respect to the class of “professor” selected from the second stack, the instance path search and visualization apparatus generates a path of “school-professor-lecture” and a path of “professor-lecture”.

After performing the step S716, the instance path search and visualization apparatus determines whether the path generated in the step S716 is a circulation path (S718). That is, in order to avoid the cost of re-searching for the previously generated path during the ontology schema path generation, the instance path search and visualization apparatus determines whether the generated path is a circulation path. Here, if the first node and the last node are the same such as “A-C-D-E-A”, the instance path search and visualization apparatus determines that the corresponding path is a circulation path.

If it is determined in the step S718 that the generated path is a circulation path, the instance path search and visualization apparatus stores the circulation path in the ontology schema path database (S720) and determines whether all classes stored in the current stack are considered for the ontology schema path generation (S722). Here, the instance path search and visualization apparatus stores the circulation path as the ontology schema path in the ontology schema path database and displays that the corresponding path is a circulation path.

If it is determined in the step S722 that all classes are considered, the instance path search and visualization apparatus determines whether the current stack is the second stack (S724).

If it is determined in the step S724 that the current stack is the second stack, the instance path search and visualization apparatus determines whether all classes of the ontology schema database are considered for the ontology schema path generation (S726).

If it is determined in the step S726 that all classes are considered for the ontology schema path generation, the instance path search and visualization apparatus generates a new path with respect to each class included in the circulation path and stores the generated path in the ontology schema path database (S728). For example, if the path is a circulation path such as “A-E-C-B-A”, the instance path search and visualization apparatus generates a path in which each of classes E, C, and B included in the circulation path is the start class or end class. For example, the generated path may be a path such as “B-A-E-C” in which B is the start class.

If it is determined in the step S726 that all classes are not considered for the ontology schema path generation, the instance path search and visualization apparatus obtains a class, which is not considered, from the ontology schema database, stores the obtained class in the first stack (S730), and then performs the step S706.

That is, the classes are stored in various forms such as a graph, table, etc. in the ontology schema database. Therefore, the instance path search and visualization apparatus should generates a path with respect to all classes stored in other forms, and thus the above process is repeated until path information with respect to all classes stored in the ontology schema database is stored in the ontology schema path database.

If it is determined in the step S724 that the current stack is a stack formed after the second stack, the instance path search and visualization apparatus selects the next class from the stacks formed before the current stack (S732) and performs the process after the step S708.

If it is determined in the step S722 that all classes stored in the current stack are not considered, the instance path search and visualization apparatus performs the step S706.

If it is determined in the step S718 that the generated path is not a circulation path, the instance path search and visualization apparatus determines whether there is a path, which is the same as the generated path or the reverse path, in the ontology schema path database (S734). That is, in order to prevent the information of the same path from being repeatedly stored in the ontology schema path database, the instance path search and visualization apparatus determines whether there is a path, which is the same as the generated path or the reverse path, in the ontology schema path database.

If it is determined in the step S734 that there is the same path, the instance path search and visualization apparatus does not store the generated path in the ontology schema path database (S736) but performs the step S706.

For example, referring to FIG. 5, if the generated path is “research achievement-professor”, there is no path of “professor-research achievement” in the ontology schema path database, and thus*the instance path search and visualization apparatus does not store the path of “research achievement-professor”.

If it is determined in the step S734 that there is not the same path, the instance path search and visualization apparatus stores the generated path in the ontology schema path database (S738).

The process of building the ontology schema path database, which is performed by the instance path search and visualization apparatus, will be described in more detail with reference to FIG. 8 below.

FIG. 8 is a diagram showing how the instance path search and visualization apparatus in accordance with the present invention builds an ontology schema path database.

Referring to FIGS. 8A to 8O, if the classes stored in the ontology schema database and their relationship are those shown in FIG. 8A, the instance path search and visualization apparatus obtains “A” which is the subject (i.e., node) of the first tuple, in which the predicate is rdf:type and the object is rdfs:class, as shown in FIG. 8B, from the ontology schema database.

Then, the instance path search and visualization apparatus obtains “a” and “d”, which are the subjects (i.e., edges) of all tuples having “A” as the object, in which the predicate is rdfs:domain or rdfs:range, as show in FIG. 8C. Moreover, the instance path search and visualization apparatus obtains “B” and “E”, which are the objects (i.e., nodes) of the tuples having the same subject as the obtained subject, in which the predicate is rdfs:domain or rdfs:range. Here, if the object of the tuple having the same subject as “A”, in which the predicate is rdfs:domain or rdfs:range is “A”, it is the relationship for the same class, and thus “A” is excluded from the search between two classes.

Then, the instance path search and visualization apparatus obtains “b”, which is the subject (i.e., edge) of all tuples having “B” as the object, in which the predicate is rdfs:domain or rdfs:range, and obtains “C”, which is the object (i.e., node) of the tuple having the same subject as the obtained subject, in which the predicate is rdfs:domain or rdfs:range, as show in FIG. 8D. Here, if the object of the tuple having the same subject as the “B”, in which the predicate is rdfs:domain or rdfs:range is “A”, this relationship has been considered in the previous search, and thus “A” is excluded from the search between two classes.

Then, the instance path search and visualization apparatus obtains “c” and “e”, which are the subjects (i.e., edges) of all tuples having “C” as the object, in which the predicate is rdfs:domain or rdfs:range, and obtains “D” and “E”, which are the objects (i.e., nodes) of the tuples having the same subject as the obtained subject, in which the predicate is rdfs:domain or rdfs:range, as show in FIG. 8E.

Then, the instance path search and visualization apparatus obtains the subjects (i.e., edges) of all tuples having “D” as the object, in which the predicate is rdfs:domain or rdfs:range, and obtains the object (i.e., node) of the tuple having the same subject as the obtained subject, in which the predicate is rdfs:domain or rdfs:range, as show in FIG. 8F.

As a result of FIG. 8F, since “D” does not have any related classes, the instance path search and visualization apparatus deletes “D” as shown in FIG. 8G and generates a path with respect to “E”, which has previously been visited, as shown in FIG. 8H.

Then, the instance path search and visualization apparatus obtains “d”, which is the subject (i.e., edge) of all tuples having “E” as the object, in which the predicate is rdfs:domain or rdfs:range, and obtains “A”, which is the object (i.e., node) of the tuple having the same subject as the obtained subject, in which the predicate is rdfs:domain or rdfs:range, as show in FIG. 8I. Here, the obtained “A” forms a circulation path, and thus “A” is excluded from the following search after the path type is represented as a graph.

Since the path generated in FIG. 8I is a circulation path, the instance path search and visualization apparatus stores the circulation path as the ontology schema path and deletes the classes considered for the path generation as shown in FIG. 8J.

Then, the instance path search and visualization apparatus obtains “e”, which is the subject (i.e., edge) of all tuples having “E” as the object, in which the predicate is rdfs:domain or rdfs:range, and obtains “C”, which is the object (i.e., node) of the tuple having the same subject as the obtained subject, in which the predicate is rdfs:domain or rdfs:range, as show in FIG. 8K. Here, the obtained “C” has the same reverse path and thus is not stored.

Then, the instance path search and visualization apparatus obtains “b” and “c”, which are the subjects (i.e., edges) of all tuples having “C” as the object, in which the predicate is rdfs:domain or rdfs:range, and obtains “B” and “D”, which are the objects (i.e., nodes) of the tuples having the same subject as the obtained subject, in which the predicate is rdfs:domain or rdfs:range, as show in FIG. 8L. Here, the obtained “C-B” and “C-D” have the same reverse path and thus are not stored.

Then, the instance path search and visualization apparatus deletes the classes considered for the path generation as shown in FIG. 8M. Moreover, the instance path search and visualization apparatus obtains “A”, which is the object (i.e., node) of all tuples having “B” as the object, in which the predicate is rdfs:domain or rdfs:range, and obtains the object (i.e., node) of the tuple having the same subject as the obtained subject, in which the predicate is rdfs:domain or rdfs:range, as show in FIG. 8N.

When the path between two classes with respect to all classes stored in the ontology schema database is searched by the above-described process, the instance path search and visualization apparatus generates a new path with respect to each class included in the circulation path as shown in FIG. 8O.

For example, in the case of a circulation path such as “A-E-C-B-A”, the instance path search and visualization apparatus searches for a path in which each of classes E, C, and B included in the circulation path is the start class or end class and further generates a path such as “B-A-E-C” in which B is the start class.

The instance path search and visualization apparatus searches for the path between two classes with respect to all classes stored in the ontology schema database, respectively, based on the above-described process. Here, the instance path search and visualization apparatus searches for all relationships without considering the direction of classes.

FIG. 9 is a flowchart showing how the instance path search and visualization apparatus in accordance with the present invention searches for an instance path.

Referring to FIG. 9, the instance path search and visualization apparatus replaces the start and end classes with corresponding first and second instances in the ontology schema path (S802). Here, if the instance path length is set in the path search condition, the ontology schema path refers to an ontology schema path corresponding to the instance path length.

After performing the step S802, the instance path search and visualization apparatus determines whether the length of the ontology schema path is “1” (S804).

If it is determined in the step S804 that the length of the ontology schema path is “1”, the instance path search and visualization apparatus generates an instance path connected to the first instance and the second instance (S806).

Then, the instance path search and visualization apparatus generates instance paths corresponding to the changed path search condition from the generated instance paths (S814).

That is, if the number of outputs and the response time are set in the path search condition, the instance path search and visualization apparatus stops the instance path search after the corresponding response time has elapsed while providing instance paths ranked at the top based on the corresponding number of outputs from the generated instance paths.

Moreover, if the corresponding response time set in the path search condition has elapsed, the instance path search and visualization apparatus provides the instance paths generated until then at a time.

If it is determined in the step S804 that the length of the ontology schema path is not “1”, the instance path search and visualization apparatus divides the ontology schema path into halves and generates a first join schedule including the first instance and a second join schedule including the second instance (S808).

Then, the instance path search and visualization apparatus extracts related instances based on the first and second join schedules and searches for first and second instance paths (S810).

The process of searching for the first and second instance paths, which is performed by the instance path search and visualization apparatus, will be described in more detail with respect to FIG. 10 shortly.

After performing the step S810, the instance path search and visualization apparatus connects the searched first and second instance paths based on their relationship generates, generates the instance paths (S812), and performs the step S814.

FIG. 10 is a flowchart showing how the instance path search and visualization apparatus in accordance with the present invention searches for an instance path based on a join schedule.

Referring to FIG. 10, the instance path search and visualization apparatus determines whether the first or second instance is connected to at least one class based on the first or second join schedule (S902).

If it is determined in the step S902 that the first or second instance is connected to at least one class, the instance path search and visualization apparatus extracts at least one instance related to the first or second instance from instances of a first or second class directly connected to the first or second instance (S904).

Then, the instance path search and visualization apparatus determines whether the first or second class is connected to another class based on the first or second join schedule (S906).

If it is determined in the step S906 that the first or second class is connected to another class, the instance path search and visualization apparatus extracts at least one instance related to the extracted instances from the instances of the connected class (S908).

Then, the instance path search and visualization apparatus connects the first or second instance to the extracted instances depending on their relationship and generates at least one first or second instance path (S910).

If it is determined in the step S906 that the first or second class is not connected to another class, the instance path search and visualization apparatus connects the first or second instance to the instances extracted from the first or second class depending on their relationship and generates at least one first or second instance path (S912).

For example, a case where the pair of classes is “B-D” and the ontology schema path is “B-A-E-C-D” will be described.

The instance path search and visualization apparatus divides the ontology schema path into “B-A-E” and “C-D” and replaces the start class B and the end class D with instance B0 corresponding to the start class B and instance D0 corresponding to the end class D, thus creating a first join schedule of “B0-A-E” and a second join schedule of “D0-C”.

The instance path search and visualization apparatus performs a join based on the first join schedule and obtains instances of A0, A1, and A2 connected to B0 from the instances of the class A.

Then, the instance path search and visualization apparatus extracts instances connected to each of A0, A1, and A2, i.e., E0 and E1 connected to A0, E1 connected to A1, and E1 and E3 connected to A2, from the instances of the class “E”.

Then, the instance path search and visualization apparatus extracts first instance paths such as “B0-A0-E0”, “B0-A0-E1”, “B0-A1-E1”, “B0-A2-E1”, and “B0-A2-E3” based on the first join schedule.

At the same time, the instance path search and visualization apparatus obtains instances C0 and C1 connected to D0 from the instances of the class “C” based on the second join schedule.

Then, the instance path search and visualization apparatus extracts second instance paths such as “D0-C0” and “D0-C1” based on the second join schedule.

Then, the instance path search and visualization apparatus connects the first instance paths to the second instance paths depending on their relationship. That is, if it is determined from the relationship between E0, E1, and E3 and C0 and C1 that E0 is connected to C0 and C1, the instance path search and visualization apparatus generates an instance path of “B0-A0-E0-C0-D0” and an instance path of “B0-A0-E0-C1-D0”.

FIGS. 11 and 12 are illustrative diagrams showing instance path display screens in accordance with the present invention.

Referring to FIG. 11, an instance path display screen 1000 includes a keyword input area 1010 through which a user inputs a desired keyword, a path search condition input area 1020 through which at least one of the instance path length (Min_Length, Max_Length), the number of outputs (Top_N), and the response time (Time) is input, and an instance path display area 1030 on which the searched instance paths are displayed in the form of a graph or a list.

If the user sets the instance path length (Min_Length, Max_Length) on the instance path display screen 1000, only the instance paths corresponding to the set instance path length are output in the instance path display area 1030.

Moreover, if the user sets the number of outputs on the instance path display screen 1000, only the instance paths corresponding to the set number of outputs are output in the instance path display area 1030.

Furthermore, if the user sets the response time on the instance path display screen 1000, the instance path search is stopped after the corresponding response time has elapsed while the generated instance paths are output.

In addition, if the user sets the response time on the instance path display screen 1000, the instance paths generated until then may be provided at a time after the corresponding response time has elapsed.

If the user selects a particular instance path list on the instance path display screen 1000, an instance path graph corresponding to the selected instance path list is highlighted more than an instance path graph corresponding to an unselected instance path list, as shown in FIG. 12. Here, the highlighting process is performed to distinguish the selected instance path from the unselected instance path.

As described above, according to the present invention, it is possible to search for a path between class-based instances and effectively display a path between two or more instances in order to rapidly search for diverse and complex relationships.

Moreover, it is possible to search for a relationship between instances based on a relationship between classes in order to avoid comparison between the relationship being searched and the relationship of unnecessary objects when comparing the relationship between instances.

Furthermore, it is possible to search and visualize an instance path by searching for all relationships without considering the direction of classes or instances.

As such, it will be understood by those skilled in the art to which the present invention pertains that the present invention can be implemented in other detailed forms without departing from the scope and spirit of the invention. Therefore, it should be understood that the above exemplary embodiments are only exemplified in all aspects and are not restrictive. The scope of the present invention should be defined by the attached claims, rather than the detailed description, and all additions, substitutions or modifications derived from the meaning and scope of the accompanying claims and equivalent concept thereof should be interpreted as being included in the scope of the present invention. 

1. A method of searching and visualizing an instance path, the method being performed by an instance path search and visualization apparatus, the method comprising: (a) receiving two or more keywords and a path search condition; (b) generating a pair of instances with respect to the keywords, respectively, and extracting a pair of classes corresponding to each of the pairs of instances from an ontology instance database, respectively; (c) obtaining an ontology schema path with respect to each of the pairs of classes from an ontology schema path database, respectively; (d) replacing start and end classes with corresponding first and second instances in each of the ontology schema paths and searching for an instance path corresponding to the path search condition from the instance paths connected between the first instance and the second instance, respectively; (e) outputting an instance path display screen on which the searched instance paths are displayed; and (f) if the path search condition is changed through the instance path display screen, obtaining and visualizing instance paths corresponding to the changed path search condition.
 2. The method of claim 1, further comprising, before step (a), searching for an ontology schema path between classes with respect to all classes stored in the ontology schema database, respectively, and storing the searched ontology schema paths in the ontology schema path database.
 3. The method of claim 2, further comprising, if an update of the ontology schema database is detected, searching for an ontology schema path of the updated class and updating the ontology schema path database.
 4. The method of claim 1, wherein the path search condition comprises at least one of an instance path length, a number of outputs, and a response time.
 5. The method of claim 1, further comprising, if a particular instance path list is selected by a user from the instance paths displayed on the instance path display screen, highlighting an instance path graph corresponding to the selected instance path list more than an instance path graph corresponding to an unselected instance path list.
 6. The method of claim 1, wherein step (b) comprises: obtaining instances of the input keywords from the ontology instance database; generating a pair of instances with respect to the obtained instances, respectively; and extracting a pair of classes corresponding to each of the pairs of instances from the ontology schema database, respectively.
 7. The method of claim 1, wherein step (c) comprises searching the ontology schema path database and obtaining an ontology schema path, in which the start class and the end class corresponding to each pair of classes are connected to the start or end, for each pair of classes, respectively.
 8. The method of claim 7, wherein if the instance path length is set in the path search condition, an ontology schema path corresponding to the instance path length is obtained with respect to each pair of classes, respectively.
 9. The method of claim 1, wherein step (d) comprises: (d-1) replacing the start and end classes with corresponding first and second instances in the ontology schema path; (d-2) dividing the ontology schema path into halves and generating a first join schedule including the first instance and a second join schedule including the second instance; (d-3) extracting related instances based on the first and second join schedules and searching for first and second instance paths; (d-4) connecting the searched first and second instance paths depending on their relationship and generating instance paths; and (d-5) searching for an instance path corresponding to the path search condition from the generated instance paths, respectively.
 10. The method of claim 9, wherein step (d-1) comprises: if the instance path length is set in the path search condition, obtaining an ontology schema path corresponding to the instance path length from the ontology schema paths, respectively; and replacing the start and end classes with corresponding first and second instances in the selected ontology schema path.
 11. The method of claim 9, wherein step (d-3) comprises: if the first or second instance is connected to at least one class in the first or second join schedule, extracting at least one instance related to the first or second instance from instances of a first or second class directly connected to the first or second instance; if there is another class connected to the first or second class in the first or second join schedule, extracting at least one instance related to the extracted instances from instances of the connected class; and connecting the first or second instance to the extracted instances depending on their relationship and generating at least one first or second instance path.
 12. The method of claim 11, further comprising, if there is not another class connected to the first or second class in the first or second join schedule, connecting the first or second instance to the instances extracted from the first or second class depending on their relationship and generating at least one first or second instance path.
 13. The method of claim 11, further comprising, if there is not another class connected to the first or second class in the first or second join schedule, generating an instance path connected only to the first instance and the second instance.
 14. The method of claim 9, wherein step (d-5) comprises, if the number of outputs and the response time are set in the path search condition, stopping the instance path search after the corresponding response time has elapsed while providing instance paths ranked at the top based on the corresponding number of outputs from the generated instance paths.
 15. The method of claim 9, wherein step (d-5) comprises, if the corresponding response time set in the path search condition has elapsed, providing the instance paths generated until then at a time.
 16. The method of claim 1, wherein the instance path display screen comprises a keyword input area, a path search condition input area through which at least one of the instance path length, the number of outputs, and the response time is input, and an instance path display area on which the searched instance paths are displayed in the form of a graph or a list.
 17. The method of claim 16, wherein step (f) comprises: receiving at least one of the instance path length, the number of output, and the response time through the path search condition input area of the instance path display screen; obtaining an instance path corresponding the input path search condition from the searched instance paths, respectively; and visualizing the obtained instance paths on the instance path display area.
 18. An apparatus of searching and visualizing an instance path, the apparatus comprising: an ontology schema database in which relationship information between classes is stored; an ontology instance database in which relationship information between instances is stored; an ontology schema path database in which ontology schema paths between classes with respect to all classes stored in the ontology schema database are stored; a user interface unit which receives two or more keywords and a path search condition from a user; an instance pair generation unit which obtains instances of the input keywords from the ontology instance database and generating pairs of instances; a class pair extraction unit which extracts a pair of classes corresponding to each of the generated pairs of instances from the ontology instance database, respectively; an ontology schema path acquisition unit which obtains an ontology schema path with respect to each of the pairs of classes from the ontology schema path database, respectively; an instance path search unit which replaces start and end classes with corresponding first and second instances in the ontology schema path, searches for an instance path corresponding to the path search condition from the instance paths connected between the first instance and the second instance, respectively, and if the path search condition is changed through the instance path display screen, obtains instance paths corresponding to the changed path search condition; and a visualization unit which outputs an instance path display screen on which the searched instance paths are displayed.
 19. The apparatus of claim 18, further comprising an ontology schema path generation unit which searches for ontology schema paths between classes with respect to all classes stored in the ontology schema database and builds the ontology schema path database.
 20. The apparatus of claim 19, wherein if an update of the ontology schema database is detected, the ontology schema path generation unit searches for an ontology schema path of the updated class and updates the ontology schema path database.
 21. The apparatus of claim 18, wherein the path search condition comprises at least one of an instance path length, a number of outputs, and a response time.
 22. The apparatus of claim 18, wherein if a particular instance path list is selected by the user from the instance paths displayed on the instance path display screen, the visualization unit highlights an instance path graph corresponding to the selected instance path list more than an instance path graph corresponding to an unselected instance path list.
 23. The apparatus of claim 18, wherein the ontology schema path acquisition unit searches the ontology schema path database and obtains an ontology schema path, in which the start class and the end class corresponding to each pair of classes are connected to the start or end, for each pair of classes, respectively.
 24. The apparatus of claim 23, wherein if the instance path length is set in the path search condition, the ontology schema path acquisition unit obtains an ontology schema path corresponding to the instance path length with respect to each pair of classes, respectively.
 25. The apparatus of claim 18, wherein the instance path search unit replaces the start and end classes with corresponding first and second instances in the ontology schema path, divides the ontology schema path into halves, generates a first join schedule including the first instance and a second join schedule including the second instance, extracts related instances based on the first and second join schedules, searches for first and second instance paths, connects the searched first and second instance paths based on their relationship generates, generates the instance paths, and searches for instance paths corresponding to the changed path search condition from the generated instance paths.
 26. The apparatus of claim 25, wherein if the first or second instance is connected to at least one class in the first or second join schedule, the instance path search unit extracts at least one instance related to the first or second instance from instances of a first or second class directly connected to the first or second instance, and if there is another class connected to the first or second class in the first or second join schedule, the instance path search unit extracts at least one instance related to the extracted instances from instances of the connected class, connects the first or second instance to the extracted instances depending on their relationship, and generates at least one first or second instance path.
 27. The apparatus of claim 25, wherein if there is not another class connected to the first or second class in the first or second join schedule, the instance path search unit connects the first or second instance to the instances extracted from the first or second class depending on their relationship and generates at least one first or second instance path.
 28. The apparatus of claim 25, wherein if there is not another class connected to the first or second class in the first or second join schedule, the instance path search unit generates an instance path connected only to the first instance and the second instance.
 29. The apparatus of claim 18, wherein if the number of outputs and the response time are set in the path search condition, the instance path search unit stops the instance path search after the corresponding response time has elapsed while providing instance paths ranked at the top based on the corresponding number of outputs from the generated instance paths.
 30. The apparatus of claim 18, wherein if the corresponding response time set in the path search condition has elapsed, the instance path search unit provides the instance paths generated until then at a time.
 31. The apparatus of claim 18, wherein the instance path display screen comprises a keyword input area, a path search condition input area through which at least one of the instance path length, the number of outputs, and the response time is input, and an instance path display area on which the searched instance paths are displayed in the form of a graph or a list.
 32. The apparatus of claim 18, wherein if at least one of the instance path length, the number of outputs, and the response time is input through the path search condition input area of the instance path display screen, the instance path search unit obtains an instance path corresponding to the input path search condition from the searched instance path, respectively, and provides the obtained instance paths to the visualization unit to visualize them on the instance path display area. 